package ${packageName};

import mx.vlabs.soapdroid.Service;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;

public class ${serviceClassName} extends Service{
	
	public final static URL WSDL_LOCATION;
	
	public final static QName SERVICE = new QName("http://bean.ejb.mailmanager.vlabs.mx/", "mailManagerService");
    
${portTypeQNames}
	
	static{
		String endPointUrl = "${wsdlLocation}";
		URL url = null;
		
		try {
			url = new URL(endPointUrl);
		} catch (MalformedURLException e) {
			java.util.logging.Logger.getLogger(${serviceClassName}.class.getName())
			    .log(java.util.logging.Level.INFO, 
			         "Can not initialize the default wsdl from {0}", endPointUrl);
		}
		WSDL_LOCATION = url;
	}
	
	public ${serviceClassName}(URL wsdlLocation) {
	    super(wsdlLocation, SERVICE);
	}

	public ${serviceClassName}(URL wsdlLocation, QName serviceName) {
	    super(wsdlLocation, serviceName);
	}

	public ${serviceClassName}() {
	    super(WSDL_LOCATION, SERVICE);
	}

${servicePortGetters}

}